import { constantRoutes } from '@/router'

export default {
  namespaced: true,
  state: {
    menuList: [...constantRoutes] // 并且放到全局getters里
  },
  mutations: {
    setMenuList(state, asyncRoutes) { // 载荷是 已经根据用户信息 筛选好了的 路由
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}
